package com.company.jrlz.entity;

import com.haulmont.cuba.core.entity.StandardEntity;

import javax.persistence.*;

@Table(name = "JRLZ_ASSEMBLE_WORK_ORDER_RECORDS")
@Entity(name = "jrlz_AssembleWorkOrderRecords")
public class AssembleWorkOrderRecords extends StandardEntity {
    private static final long serialVersionUID = -5387907119881714424L;

    @Column(name = "ORDER_STATUS")
    private String orderCode;

    @Column(name = "JZ_CODE")
    private String jzCode;

    @JoinColumn(name = "OUTER_CYLINDER_ID")
    @ManyToOne(fetch = FetchType.LAZY)
    private OuterCylinder outerCylinder;

    @JoinColumn(name = "MIDDLE_CYLINDER_ID")
    @ManyToOne(fetch = FetchType.LAZY)
    private MiddleCylinder middleCylinder;

    @JoinColumn(name = "ACTIVITY_PILLAR_ID")
    @ManyToOne(fetch = FetchType.LAZY)
    private ActivityPillar activityPillar;

    @Column(name = "BATCH_NUM")
    private String batchNum;

    @Column(name = "START_TIME")
    private String startTime;

    @Column(name = "END_TIME")
    private String endTime;

    @Column(name = "ORDER_SEND_TIME")
    private String orderSendTime;

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setOrderSendTime(String orderSendTime) {
        this.orderSendTime = orderSendTime;
    }

    public String getOrderSendTime() {
        return orderSendTime;
    }

    public void setActivityPillar(ActivityPillar activityPillar) {
        this.activityPillar = activityPillar;
    }

    public ActivityPillar getActivityPillar() {
        return activityPillar;
    }

    public void setOuterCylinder(OuterCylinder outerCylinder) {
        this.outerCylinder = outerCylinder;
    }

    public OuterCylinder getOuterCylinder() {
        return outerCylinder;
    }

    public void setMiddleCylinder(MiddleCylinder middleCylinder) {
        this.middleCylinder = middleCylinder;
    }

    public MiddleCylinder getMiddleCylinder() {
        return middleCylinder;
    }

    public String getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(String batchNum) {
        this.batchNum = batchNum;
    }

    public String getJzCode() {
        return jzCode;
    }

    public void setJzCode(String jzCode) {
        this.jzCode = jzCode;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }
}